import React, { Component } from 'react';
import Aside from "./components/Aside"
import data from "./data.js";
// import Children from "./components/Children"
console.log(data)
class App extends Component {
  constructor(props) {
    super(props);
    this.state = {
      data: data
    };
  }
  static defaultProps = {
    ground: [{
      title: "标题1",
      isOpen: false,
      children: ["内容1", '内容2', '内容3']
    }]
  }
  render() {
    const { ground } = this.props;
    return (
      <div>
        <Aside ground={this.state.data} />
      </div>
    );
  }
}
export default App;